/*
 * XML Type:  ReturnOfCapital
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.ReturnOfCapital
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04;


/**
 * An XML ReturnOfCapital(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public interface ReturnOfCapital extends net.ofx.types.x2003.x04.AbstractInvestmentTransaction
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s3A74FF4CC3627C5B0D40068015746F8A.TypeSystemHolder.typeSystem.resolveHandle("returnofcapital6c33type");
    
    /**
     * Gets the "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId getSECID();
    
    /**
     * Sets the "SECID" element
     */
    void setSECID(net.ofx.types.x2003.x04.SecurityId secid);
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId addNewSECID();
    
    /**
     * Gets the "TOTAL" element
     */
    java.lang.String getTOTAL();
    
    /**
     * Gets (as xml) the "TOTAL" element
     */
    net.ofx.types.x2003.x04.AmountType xgetTOTAL();
    
    /**
     * Sets the "TOTAL" element
     */
    void setTOTAL(java.lang.String total);
    
    /**
     * Sets (as xml) the "TOTAL" element
     */
    void xsetTOTAL(net.ofx.types.x2003.x04.AmountType total);
    
    /**
     * Gets the "SUBACCTSEC" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCTSEC();
    
    /**
     * Gets (as xml) the "SUBACCTSEC" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCTSEC();
    
    /**
     * Sets the "SUBACCTSEC" element
     */
    void setSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacctsec);
    
    /**
     * Sets (as xml) the "SUBACCTSEC" element
     */
    void xsetSUBACCTSEC(net.ofx.types.x2003.x04.SubAccountEnum subacctsec);
    
    /**
     * Gets the "SUBACCTFUND" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum.Enum getSUBACCTFUND();
    
    /**
     * Gets (as xml) the "SUBACCTFUND" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum xgetSUBACCTFUND();
    
    /**
     * Sets the "SUBACCTFUND" element
     */
    void setSUBACCTFUND(net.ofx.types.x2003.x04.SubAccountEnum.Enum subacctfund);
    
    /**
     * Sets (as xml) the "SUBACCTFUND" element
     */
    void xsetSUBACCTFUND(net.ofx.types.x2003.x04.SubAccountEnum subacctfund);
    
    /**
     * Gets the "CURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency getCURRENCY();
    
    /**
     * True if has "CURRENCY" element
     */
    boolean isSetCURRENCY();
    
    /**
     * Sets the "CURRENCY" element
     */
    void setCURRENCY(net.ofx.types.x2003.x04.Currency currency);
    
    /**
     * Appends and returns a new empty "CURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency addNewCURRENCY();
    
    /**
     * Unsets the "CURRENCY" element
     */
    void unsetCURRENCY();
    
    /**
     * Gets the "ORIGCURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency getORIGCURRENCY();
    
    /**
     * True if has "ORIGCURRENCY" element
     */
    boolean isSetORIGCURRENCY();
    
    /**
     * Sets the "ORIGCURRENCY" element
     */
    void setORIGCURRENCY(net.ofx.types.x2003.x04.Currency origcurrency);
    
    /**
     * Appends and returns a new empty "ORIGCURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency addNewORIGCURRENCY();
    
    /**
     * Unsets the "ORIGCURRENCY" element
     */
    void unsetORIGCURRENCY();
    
    /**
     * Gets the "INV401KSOURCE" element
     */
    net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum getINV401KSOURCE();
    
    /**
     * Gets (as xml) the "INV401KSOURCE" element
     */
    net.ofx.types.x2003.x04.Investment401KSourceEnum xgetINV401KSOURCE();
    
    /**
     * True if has "INV401KSOURCE" element
     */
    boolean isSetINV401KSOURCE();
    
    /**
     * Sets the "INV401KSOURCE" element
     */
    void setINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum inv401KSOURCE);
    
    /**
     * Sets (as xml) the "INV401KSOURCE" element
     */
    void xsetINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum inv401KSOURCE);
    
    /**
     * Unsets the "INV401KSOURCE" element
     */
    void unsetINV401KSOURCE();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static net.ofx.types.x2003.x04.ReturnOfCapital newInstance() {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, null ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, options ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, null ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, options ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        public static net.ofx.types.x2003.x04.ReturnOfCapital parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.ReturnOfCapital) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
